﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;

namespace HML
{
    /// <summary>
    /// SingleAccordion自定义动画
    /// </summary>
    public class SingleAccordionCustomAnimation
    {
        private string key = "";
        /// <summary>
        /// 动画类型标识
        /// </summary>
        public string Key
        {
            get { return this.key; }
        }

        private object target = null;
        /// <summary>
        /// 动画目标
        /// </summary>
        public object Target
        {
            get { return this.target; }
        }

        private int animationUsedTime = 0;
        /// <summary>
        /// 自定义动画已使用时间
        /// </summary>
        public int AnimationUsedTime
        {
            get { return this.animationUsedTime; }
            set { this.animationUsedTime = value; }
        }

        private int animationAllTime = 150;
        /// <summary>
        /// 自定义动画总时间
        /// </summary>
        public int AnimationAllTime
        {
            get { return this.animationAllTime; }
        }

        private bool isLayout = false;
        /// <summary>
        /// 自定义动画是否涉及控件内部布局计算
        /// </summary>
        public bool IsLayout
        {
            get { return this.isLayout; }
        }

        private object tag = null;
        /// <summary>
        /// 动画自定义数据
        /// </summary>
        public object Tag
        {
            get { return this.tag; }
            set { this.tag = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key">动画类型标识</param>
        /// <param name="target">动画目标</param>
        /// <param name="animationUsedTime">自定义动画已使用时间</param>
        /// <param name="animationAllTime">自定义动画总时间</param>
        /// <param name="isLayout">自定义动画是否涉及控件内部布局计算</param>
        /// <param name="tag">动画自定义数据</param>
        public SingleAccordionCustomAnimation(string key, object target, int animationUsedTime, int animationAllTime, bool isLayout, object tag)
        {
            this.key = key;
            this.target = target;
            this.animationUsedTime = animationUsedTime;
            this.animationAllTime = AnimationAllTime;
            this.isLayout = isLayout;
            this.tag = tag;
        }

    }

}
